package com.xique.client.service.service;

import com.xique.client.bean.domain.PayOrder;
import com.xique.client.bean.search.PayOrderSearch;

/**
 * @author shd
 * @create 2021/11/4 10:17
 */
public interface IPayOrderService {

    /**
     * 获取支付订单信息
     * @author shd
     * @date 2021/11/9 9:33
     * @param search
     * @return com.xique.client.bean.domain.PayOrder
     */
    PayOrder selectPayOrder(PayOrderSearch search);

    /**
     * 统计电子支付金额
     * @author shd
     * @date 2021/11/4 10:42
     * @param parkId
     * @return java.lang.Long
     */
    Double selectElectronicStatistic(Long parkId);

    /**
     * 统计现金收费金额
     * @author shd
     * @date 2021/11/4 10:42
     * @param parkId
     * @return java.lang.Long
     */
    Double selectCashStatistic(Long parkId);

    /**
     * 统计现金收费金额
     * @author shd
     * @date 2021/11/4 10:42
     * @param parkId 项目id
     * @param userId 管理员用户id
     * @return java.lang.Long
     */
    Double selectCashStatisticByUserId(Long parkId, Long userId);

    /**
     * 统计未收金额
     * @author shd
     * @date 2021/11/4 10:42
     * @param parkId
     * @return java.lang.Long
     */
    Double selectWaitStatistic(Long parkId);

    /**
     * 统计免费金额
     * @author shd
     * @date 2021/11/4 10:42
     * @param parkId
     * @return java.lang.Long
     */
    Double selectFreeStatistic(Long parkId);

    /**
     * 统计免费金额
     * @author shd
     * @date 2021/11/9 10:00
     * @param parkId
     * @param userId 管理员用户id
     * @return java.lang.Double
     */
    Double selectFreeStatisticByUserId(Long parkId, Long userId);

}
